package tools;

import java.io.File;
import java.io.FileFilter;

public class loadFileFilter implements FileFilter{
	
	private String extension= ".";
	public loadFileFilter(){
		extension+= "html";
	}
	public loadFileFilter(String extendName){
		extension+= extendName;
	}
	 @Override  
     public boolean accept(File pathname) {  
         String filename = pathname.getName().toLowerCase();  
         if(filename.contains(extension)){  
             return true;  
         }else{  
             return false;  
         }  
     } 
}